import request from "../../request";
import { type AxiosRequestConfig } from "axios";
import { type DeepRequired, type Media } from "../../interface";

/**
 * 保存或更新 Media 信息
 * /media
 */
export function postMedia(input: Media, config?: AxiosRequestConfig) {
    return request.post<DeepRequired<boolean>>(`/media`, input, config);
}
